package com.geekaca.d4.d3;

import java.time.LocalDate;

public class TestLocalDate {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
//        System.out.println(now);


        System.out.println(now);
        System.out.println("当前日期:" + LocalDate.now());
        System.out.println(now.getYear());

        int dayOfYear = now.getDayOfYear();
        System.out.println(dayOfYear);

        Class objClass = now.getClass();
        System.out.println(objClass.getSimpleName());
        System.out.println(objClass.getName());
        System.out.println(now.getClass().getName());
        System.out.println(now.getClass().getSimpleName());
    }
}
